package org.fund.base_service.service.impl;

import org.fund.base_service.domain.Position;
import org.fund.base_service.mapper.PositionMapper;
import org.fund.common.util.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author Moro
 * @Date 2022/3/25 15:50
 * @title IndexService
 */
@Service
public class IndexService {
    @Autowired
    private PositionMapper positionMapper;

    public List<Position> getAllByUserId(){
      return   positionMapper.queryAll(SecurityUtils.getUserId());
    }
}
